package com.aplink.generic.pojo.xml;

import java.util.ArrayList;


public class GeoMapConfig {

    private String addressId;
    private boolean isDisplayAddress;
    private String latitudeId;
    private String longitudeId;
    private ArrayList<GeoPointStatus> mArrPointStatus; // this field
    // denotes an
    // array list of
    // proposed point
    // status
    // in our database

    private String statusId;

    public GeoMapConfig() {
        this.setLatitudeId( this.setLongitudeId( this.setAddressId( "" ) ) );
        this.setmArrPointStatus( new ArrayList<GeoPointStatus>() );
        this.statusId = "";
    }

    public String getAddressId() {
        return this.addressId;
    }

    public GeoPointStatus getGeoPointStatusFromStatus( String status ) {

        for ( int i = 0 ; i < this.mArrPointStatus.size() ; i++ ) {
            GeoPointStatus geoPointStatus = new GeoPointStatus();
            geoPointStatus = this.mArrPointStatus.get( i );
            if ( geoPointStatus.getmStatus().compareToIgnoreCase( status ) == 0 ) {
                return geoPointStatus;
            }
        }

        return null;
    }

    public boolean getIsDisplayAddress() {
        return this.isDisplayAddress;
    }

    public String getLatitudeId() {
        return this.latitudeId;
    }

    public String getLongitudeId() {
        return this.longitudeId;
    }

    public ArrayList<GeoPointStatus> getmArrPointStatus() {
        return this.mArrPointStatus;
    }

    public String getStatusId() {
        return this.statusId;
    }

    public String setAddressId( String addressId ) {
        this.addressId = addressId;
        return addressId;
    }

    public void setIsDisplayAddress( boolean isDisplayAddress ) {
        this.isDisplayAddress = isDisplayAddress;

    }

    public void setLatitudeId( String latitudeId ) {
        this.latitudeId = latitudeId;
    }

    public String setLongitudeId( String longitudeId ) {
        this.longitudeId = longitudeId;
        return longitudeId;
    }

    public void setmArrPointStatus( ArrayList<GeoPointStatus> mArrPointStatus ) {
        this.mArrPointStatus = mArrPointStatus;
    }

    public void setStatusId( String statusId ) {
        this.statusId = statusId;
    }
}
